<?php
  $this->load->view('common/header',
array(
  'title' =>'员工列表'
));
$this->load->view('common/sliderbar',
array(
  'menu'   => 'employee',
  'option' => 'employeelist'
));
 ?>
 <link rel="stylesheet" href="../public/css/employee/employee_list.css">
	<div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<a>员工管理</a>
				</li>
			</ul>
		</div>
		<div style="padding-top:5px;padding-left:5px;">
			<form class="form-search" style="width:300px;display:block;float:left" action="/employee/employee_list" post="get">
				<div class="input-group">
					<input type="text" class="form-control search-query" name="search" placeholder="请输入关键字" <?php if(!empty($_GET[ 'search'])){echo 'value="'.$_GET[ 'search']. '"';} ?> />
					<span class="input-group-btn">
          <input type="submit"  class="btn btn-info btn-sm" value="搜索">
					</span>
				</div>
			</form>
			<!-- <a href="/shop/shopexcel">导出所有店铺信息</a> -->
			<div style="float:right;display:inline-block;margin-right:20px;">
				<ul class="pagination" style="margin:0px;">
					<?php echo $this->pagination->create_links() ?>
				</ul>
			</div>
		</div>
		<div class="row">
			<div class="table-responsive">
				<table id="sample-table-1" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th>编号</th>
							<th>姓名</th>
							<th>品牌</th>
							<th>职位</th>
							<th>联系电话</th>
							<th>出生日期</th>
							<th>入职时间</th>
							<th>地址</th>
							<th class="center" style="min-width:55px;">操作</th>
						</tr>
					</thead>
					<tbody>
            <?php foreach ($employee_list as $employee): ?>
            <tr>
            <td class="J_emid"><?php echo $employee['emid']; ?></td>
            <td class="J_emname"><?php echo $employee['emname']; ?></td>
            <td class="J_embrand"><?php echo $employee['embrand']; ?></td>
            <td class="J_emposition"><?php echo $employee['emposition']; ?></td>
            <td class="J_emtel"><?php echo $employee['emtel']; ?></td>
            <td class="J_embirth"><?php echo $employee['embirth']; ?></td>
            <td class="J_emintime"><?php echo $employee['emintime']; ?></td>
            <td class="J_emaddr"><?php echo $employee['emaddr']; ?></td>
						<td class="center">
              <a href="javascript:;" data-emid="<?php echo $employee['emid']; ?>" class="J_emupdate">编辑</a>
              <a href="/summary/summarylist?search=<?php echo $employee['emname']; ?>">查看总结</a>
              <a href="javascript:;" data-emid="<?php echo $employee['emid']; ?>" class="J_summary">导出总结</a>
              <a href="javascript:;" data-emid="<?php echo $employee['emid']; ?>" class="J_resetupdate">重置密码</a>
              <a href="#" class="J_emdelete">删除</a>
            </td>
          </tr>
          <?php endforeach ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
  <script type="text/javascript" src="../public/js/common/YMD.js"></script>
	<script type="text/javascript" src="../public/js/employee/employee_list.js"></script>
	<?php
$this->load->view('common/footer');
?>
